package com.junjie.checkin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.junjie.checkin.entity.Enum.GIftStatusEnum;
import lombok.Data;
import java.io.Serializable;

/**
 * 礼物表(TGift)实体类
 *
 * @author makejava
 * @since 2025-06-09 13:21:45
 */
@Data
@TableName("t_gift")
public class TGift implements Serializable {
    private static final long serialVersionUID = 752606785214782492L;

    @TableId(value = "id",type =  IdType.AUTO)
    private Integer id;  //  礼物ID

    @TableField(value = "name")
    private String name;   //  礼物名称

    @TableField(value = "point")
    private Integer point;    //  礼物积分

    @TableField(value = "description")
    private String description;   //  礼物描述

    @TableField(value = "image_url")
    private String imageUrl;   //   礼物图片


    @TableField(value = "inventory")
    private Integer inventory;   //  礼物库存

    @TableField(value = "status")
    private GIftStatusEnum status;   // 礼品状态
    
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;   //  创建时间
    
    
    @TableField(value = "create_by")
    private String createBy;    //  创建人
    
    
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;   //   更新时间
    
    
    @TableField(value = "update_by")
    private String updateBy;   //  更新人

    @TableLogic
    @TableField(value = "disable")
    private boolean  disable;   //  逻辑删除
    
}
